<%--
  Created by IntelliJ IDEA.
  User: Cian
  Date: 2017/3/31
  Time: 10:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<%
    String username = null;
    String password = null;
    Cookie[] cookie = request.getCookies();
    if (cookie != null){
        for (Cookie cookie1 : cookie){
            if (!(cookie1.getName()).equals("")){
                username = cookie1.getName();
                password = cookie1.getValue();
            }
        }
    }
    Cookie userInfo = new Cookie("username",username);
%>
<body>
hello ${currentUser.getUsername()}
</body>
</html>
